package top.codecrab.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.codecrab.springcloud.service.MessageProvider;

import javax.annotation.Resource;

/**
 * @author codecrab
 * @since 2021年05月18日 15:55
 */
@RestController
public class SendMessageController {

    @Resource
    private MessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage() {
        return messageProvider.send();
    }
}
